﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.XtraGrid.Views.Grid;

namespace SchoolManagementSystem.Controls
{
    class SetFormatGridColumn
    {
        public static void Format(object Model, GridView gridView1, string Column)
        {
            if (Column == "Money" || Column == "Price" || Column == "MoneyPaid" || Column == "MoneyOver")
            {
                gridView1.Columns[Column].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
                gridView1.Columns[Column].DisplayFormat.FormatString = "c1";
            }
            
        }
    }
}
